FROM python:3
MAINTAINER jtxmys/2.1

#RUN apt-get update
RUN apt-get update&&apt update
#RUN apt-get install vim -y
#&& apt-get install git -y

WORKDIR /opt/
RUN pip install django&&pip install uwsgi

WORKDIR /opt
RUN rm -rf django_demo/
RUN git clone https://gitee.com/jtxmys/django_demo.git
RUN sleep 5
#RUN django-admin.py startproject qishi3dj
#ADD run.sh /opt/django_demo/run.sh
#RUN chmod 777 run.sh
ADD .bashrc /tmp/.bashrc
RUN cp /tmp/.bashrc ~/.bashrc
WORKDIR /opt/django_demo/demo/
EXPOSE 8000
ADD run.sh run.sh
RUN mkdir /logs
RUN chmod 777 /logs
CMD ["/bin/bash","run.sh"]
